import requests
def login_token():
    resp = requests.post(url='http://ihrm2-test.itheima.net/api/sys/login', json={"mobile": "13800000002", "password": "123456"})
    token=resp.json().get("data")
    add_head={"Authorization":token}
    return add_head

if __name__ == '__main__':
    resp=login_token()
    print(resp)